package com.cdplife.ci.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 计划险种表
 * </p>
 *
 * @author jers
 * @since 2018-11-11
 */
@TableName("plan_insurance_kind")
public class PlanInsuranceKind extends Model<PlanInsuranceKind> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("created_by")
    private String createdBy;
    @TableField("created_date")
    private Date createdDate;
    @TableField("last_modified_by")
    private String lastModifiedBy;
    @TableField("last_modified_date")
    private Date lastModifiedDate;
    /**
     * 计划ID
     */
    @TableField("plan_id")
    private Integer planId;
    /**
     * 计划类型：1保单计划 2客户方案
     */
    @TableField("plan_type")
    private Integer planType;
    /**
     * 险种ID
     */
    @TableField("insurance_kind_id")
    private Integer insuranceKindId;
    /**
     * 保额类型：1固定保额 2浮动保额
     */
    @TableField("amount_type")
    private Integer amountType;
    /**
     * （免核保）保额额度
     */
    @TableField("amount_limit")
    private BigDecimal amountLimit;
    /**
     * 保费（比例）
     */
    private BigDecimal amount;
    /**
     * 浮动保额中月薪倍数：1-99倍
     */
    @TableField("salary_times")
    private Integer salaryTimes;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public String getLastModifiedBy() {
        return lastModifiedBy;
    }

    public void setLastModifiedBy(String lastModifiedBy) {
        this.lastModifiedBy = lastModifiedBy;
    }

    public Date getLastModifiedDate() {
        return lastModifiedDate;
    }

    public void setLastModifiedDate(Date lastModifiedDate) {
        this.lastModifiedDate = lastModifiedDate;
    }

    public Integer getPlanId() {
        return planId;
    }

    public void setPlanId(Integer planId) {
        this.planId = planId;
    }

    public Integer getPlanType() {
        return planType;
    }

    public void setPlanType(Integer planType) {
        this.planType = planType;
    }

    public Integer getInsuranceKindId() {
        return insuranceKindId;
    }

    public void setInsuranceKindId(Integer insuranceKindId) {
        this.insuranceKindId = insuranceKindId;
    }

    public Integer getAmountType() {
        return amountType;
    }

    public void setAmountType(Integer amountType) {
        this.amountType = amountType;
    }

    public BigDecimal getAmountLimit() {
        return amountLimit;
    }

    public void setAmountLimit(BigDecimal amountLimit) {
        this.amountLimit = amountLimit;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Integer getSalaryTimes() {
        return salaryTimes;
    }

    public void setSalaryTimes(Integer salaryTimes) {
        this.salaryTimes = salaryTimes;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PlanInsuranceKind{" +
        ", id=" + id +
        ", createdBy=" + createdBy +
        ", createdDate=" + createdDate +
        ", lastModifiedBy=" + lastModifiedBy +
        ", lastModifiedDate=" + lastModifiedDate +
        ", planId=" + planId +
        ", planType=" + planType +
        ", insuranceKindId=" + insuranceKindId +
        ", amountType=" + amountType +
        ", amountLimit=" + amountLimit +
        ", amount=" + amount +
        ", salaryTimes=" + salaryTimes +
        "}";
    }
}
